package com.lagou.subjectthree;

import java.math.BigDecimal;

/**
 * 用户消费信息类
 */
public class UserCostInfo {
    /**
     * 用户名
     */
    private String UserName;
    /**
     * 通话时长（分钟）
     */
    private float CallTime;
    /**
     * 上网流量
     */
    private float InternetData;
    /**
     * 每月费用
     */
    private BigDecimal MonthCost;

    public UserCostInfo(String userName, float callTime, float internetData, BigDecimal monthCost) {
        setUserName(userName);
        setCallTime(callTime);
        setInternetData(internetData);
        setMonthCost(monthCost);
        System.out.println("消费信息类");
        System.out.println("消费信息：" + userName + "打电话(分钟)：" + callTime + "。上网(MB)：" + internetData + "。花费(元)：" + monthCost + "。");
    }

    /**
     * 自定义成员方法实现特征的获取和修改
     *
     * @return
     */
    public String getUserName() {
        return UserName;
    }

    public void setUserName(String userName) {
        UserName = userName;
    }

    public float getCallTime() {
        return CallTime;
    }

    public void setCallTime(float callTime) {
        CallTime = callTime;
    }

    public float getInternetData() {
        return InternetData;
    }

    public void setInternetData(float internetData) {
        InternetData = internetData;
    }

    public BigDecimal getMonthCost() {
        return MonthCost;
    }

    public void setMonthCost(BigDecimal monthCost) {
        MonthCost = monthCost;
    }
}
